from django.contrib import admin
from django.urls import path,re_path,include
from rest_framework_jwt.views import obtain_jwt_token
from . import views
from rest_framework.routers import SimpleRouter,DefaultRouter
from goods_info.views import category,units,attachment,goods



urlpatterns = [

   # re_path(r'^user/login/$', obtain_jwt_token), #jwt的签发 和认证token的视图类

]

router=DefaultRouter()
#router.register(r'menus',views.MenuView)
router.register(r'category',category.CategoryView)
router.register(r'unit',units.UnitsView)
router.register(r'attachment',attachment.AttachmentView)
router.register(r'goods',goods.GoodsView)


urlpatterns+=router.urls
